package com.fafu.rbac.domain.query;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fafu.common.web.controller.BaseController;
import com.fafu.common.web.mybatis.anno.Like;
import com.fafu.common.web.query.BaseQuery;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

/**
    * 权限表
    */
@Getter
@Setter
@ToString
public class PermissionQuery extends BaseQuery {
    /**
     * 名称
     */
    @Like
    private String name;

    /**
     * 按钮权限标识
     */
    private String code;

    /**
     * 状态：1可用 2不可用
     */
    private Integer state;

    @Builder
    public PermissionQuery(Integer pageNum, Integer pageSize, String name, String code, Integer state) {
        super(pageNum, pageSize);
        this.name = name;
        this.code = code;
        this.state = state;
    }
}